package p.ithorns.support.license.model;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * AuthReq
 * TODO ithorns
 *
 * @author Ht.L
 * @date 2023-12-14 16:34
 * @since 1.0.0
 */
@Getter
@Setter
@NoArgsConstructor
public class AuthReq implements Serializable {

    /**
     * 客户ID
     */
    @NotEmpty(message = "客户ID不能为空")
    private String clientId;

    /**
     * 过期时间
     */
    @NotNull(message = "到期时间不能为空")
    private LocalDateTime expiration;

    @Override
    public String toString() {
        return "{" +
                "clientId:'" + clientId + '\'' +
                ", expiration:" + expiration +
                "}";
    }

}